﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orders.aspx.cs" Inherits="WebSite.admin.order.orders" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
 
</head>
<body>
    <form id="form1" runat="server">
     <ext:PageManager ID="PageManager1" runat="server" />

         <ext:Form ID="formOrder" runat="server" BodyPadding="5px" Hidden="false" ShowBorder="false" EnableBackgroundColor="false" EnableLightBackgroundColor="false"
        Title="" ShowHeader="false">
        <Rows>
           <ext:FormRow ColumnWidths="30% 30% 40%">
                <Items>
             <ext:ContentPanel ID="panelBaseInfo" ShowBorder="true" BodyPadding="10px"  Height="220px" CssStyle="line-height:20px;" Title=" 基本信息" ShowHeader="true"  AutoScroll="true"
                                        CssClass="intro" runat="server">
                           <%= CardBaseInfo%>
            </ext:ContentPanel>

            <ext:ContentPanel ID="panelPayInfo" ShowBorder="true" BodyPadding="10px"  Height="220px" CssStyle="line-height:20px;" Title="支付方式" ShowHeader="true"  AutoScroll="true"
                                        CssClass="intro" runat="server">
                                         <%= CardPayInfo%>
                
        </ext:ContentPanel>
                     <ext:ContentPanel ID="panelLogisticsInfo" ShowBorder="true" Height="220px" CssStyle="line-height:20px;"  BodyPadding="10px"  Title="物流配送信息" ShowHeader="true"  AutoScroll="true"
                                        CssClass="intro" runat="server">
                               <%= CardLogisticsInfo%>
        </ext:ContentPanel>

                  
                </Items>
            </ext:FormRow>
        </Rows>
    </ext:Form>

 
  
                  <ext:Grid ID="Grid1" Title="商品清单" PageSize="50"   Height="200px"
         ShowBorder="false"  CssClass="x-form-item"      
                         ShowHeader="false" runat="server" 
         EnableCheckBoxSelect="false"  AllowPaging="false"  AllowSorting="true"    IsDatabasePaging="false" 
                        DataKeyNames="goodsId,orderId,goodsCount,modelTypeId"  EnableRowNumber="True" 
         onrowdatabound="Grid1_RowDataBound">

        <Columns>
        
              <ext:TemplateField Width="100px" SortField="goodsName" HeaderText="商品图片">
                <ItemTemplate>
                         <img src="/uploadfile/product/<%# Eval("bigPic") %>" width="50" height="50" alt="" />
                </ItemTemplate>
            </ext:TemplateField>
           <ext:TemplateField Width="380px" SortField="goodsName" HeaderText="商品名称">
                <ItemTemplate>
                     <a href="/cn/goodsDetail.html?gid=<%# Eval("goodsId") %>" title="显示" target="_blank"><%# Eval("goodsName")%> <%# Eval("modelTypeName") == "" ? "" : "（" + Eval("modelTypeName") + "）"%> </a>
                </ItemTemplate>
            </ext:TemplateField>
        
            
       
           <ext:BoundField Width="100px" ColumnID="goodsPoints" SortField="goodsPoints" DataField="goodsPoints" DataFormatString="{0}"
                HeaderText="福点数" />
           <ext:BoundField Width="100px" ColumnID="goodsCount" SortField="goodsCount"  DataField="goodsCount" DataFormatString="{0}"
                HeaderText="数量" />
            <ext:BoundField Width="100px" ColumnID="sumPoints" SortField="sumPoints" DataField="sumPoints" DataFormatString="{0}"
                HeaderText="总计福点数" />
              <ext:WindowField Width="60px" WindowID="Window1" HeaderText="出库" Text="出库"   ToolTip="出库" DataIFrameUrlFields="goodsId,goodsCount,orderId,modelTypeId,orderCode"
                                DataIFrameUrlFormatString="/admin/warehouse/cardGoodsOut.aspx?gid={0}&gcount={1}&oid={2}&mid={3}&ocode={4}" Title="出库"
                                IFrameUrl="~/alert.aspx" />
            

        </Columns>
    </ext:Grid>

            <ext:form ID="Form2" runat="server" BodyPadding="5px"  Title="收件人信息" EnableBackgroundColor="false" ShowHeader="true" >
            <Rows>
            <ext:FormRow ColumnWidths="25% 25% 25% 25%">
                <Items>
                  <ext:textbox ID="txtCname"  Label="收件人" runat="server" Text=""></ext:textbox>
                   <ext:DatePicker ID="dpkSendTime" Width="100px" Label="送货日期" runat="server">
                    </ext:DatePicker>
                 <ext:textbox ID="txtTel"  Label="电话" runat="server" Text=""></ext:textbox>
                  <ext:textbox ID="txtMobile"  Label="手机" runat="server" Text=""></ext:textbox>
                </Items>
            </ext:FormRow>
             <ext:FormRow ColumnWidths="">
                <Items>
                  <ext:textbox ID="txtSendAddress"  Label="送货地址" runat="server" Text=""></ext:textbox>
                </Items>
            </ext:FormRow>
             <ext:FormRow ColumnWidths="">
                <Items>
                       <ext:Button ID="btnUpdateAddress" runat="server" Text="保存" 
                           OnClick="btnUpdateAddress_Click"></ext:Button>
                </Items>
            </ext:FormRow>
   
            </Rows>
        </ext:form>

          <ext:Panel ID="Panel2" runat="server" Height="250px"  ShowBorder="false"
        Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start" BoxConfigPadding="2"
        BoxConfigChildMargin="0 5 0 0" ShowHeader="false" Title="">
        <Items>
            <ext:Panel ID="panelOperate" Title="订单处理操作" EnableBackgroundColor="false"  Width="320px"  BoxFlex="1" runat="server"
                BodyPadding="5px" ShowBorder="true" ShowHeader="true">
                <Items>
                    <ext:form ID="fmOrderOperate"  BodyPadding="5px"  ShowBorder="false" Title="处理操作" EnableBackgroundColor="false" ShowHeader="false" >
            <Rows>
            <ext:FormRow ColumnWidths="">
                <Items>
                   <ext:DropDownList ID="ddlOrderStates" runat="server" Label="订单状态" Width="170px">
                    <ext:ListItem Text="新订单" Value="0" Selected="true" />
                      <ext:ListItem Text="备货中" Value="1" />
                     <ext:ListItem Text="已发货" Value="2" />
                     <ext:ListItem Text="已完成" Value="3"/>
                   </ext:DropDownList>
                </Items>
            </ext:FormRow>
             <ext:FormRow ColumnWidths="">
                <Items>
                  <ext:TextArea ID="txtOrderRemark" runat="server" Label="处理备注" Required="true" ShowRedStar="true" Width="170px"></ext:TextArea>
                </Items>
            </ext:FormRow>
          <ext:FormRow ColumnWidths="">
                <Items>
                  <ext:Button ID="btnSaveStatesRemark" runat="server" ValidateForms="fmOrderOperate" Text="保存" 
                        OnClick="btnSaveStatesRemark_Click"></ext:Button>
                </Items>
            </ext:FormRow>
            </Rows>
        </ext:form>

                </Items>
            </ext:Panel>
            <ext:Panel ID="panelCompain" Title="投诉建议" Width="320px" EnableBackgroundColor="false"
                runat="server" BodyPadding="5px" ShowBorder="true" ShowHeader="true">
                <Items>
                      <ext:form  ID="fmCompain" BodyPadding="5px"  Title="投诉建议" ShowBorder="false"  EnableBackgroundColor="false" ShowHeader="false" >
            <Rows>
            <ext:FormRow ColumnWidths="">
                <Items>
                   <ext:DropDownList ID="ddlCompainType" runat="server" Label="投诉类别" Width="200px"></ext:DropDownList>
                </Items>
            </ext:FormRow>
             <ext:FormRow ColumnWidths="">
                <Items>
                  <ext:TextArea ID="txtCompainContent" Required="true" ShowRedStar="true" runat="server" Label="投诉内容"></ext:TextArea>
                </Items>
            </ext:FormRow>
          <ext:FormRow ColumnWidths="">
                <Items>
                  <ext:Button ID="btnCompain" runat="server" ValidateForms="fmCompain"  Text="保存" OnClick="btnCompain_Click" ></ext:Button>
                </Items>
            </ext:FormRow>
            </Rows>
        </ext:form>
                </Items>
            </ext:Panel>
            <ext:Panel ID="panelCompainProcess" Title="投诉处理" EnableBackgroundColor="false" BoxFlex="2" runat="server"
                BodyPadding="5px" BoxMargin="0" ShowBorder="true" ShowHeader="true">
                <Items>
                   <ext:form ID="fmCompainProcess"  BodyPadding="5px" Title="投诉处理" ShowBorder="false" EnableBackgroundColor="false" ShowHeader="false" >
                        <Rows>
                         <ext:FormRow ColumnWidths="">
                            <Items>
                              <ext:TextArea ID="txtCompainProcessRemark" Required="true" ShowRedStar="true" runat="server" Label="处理结果"></ext:TextArea>
                            </Items>
                        </ext:FormRow>
                      <ext:FormRow ColumnWidths="">
                            <Items>
                              <ext:Button ID="btnCopainProcess" runat="server" Text="保存"  ValidateForms="fmCompainProcess"
                                    OnClick="btnCopainProcess_Click"></ext:Button>
                            </Items>
                        </ext:FormRow>
                        </Rows>
                  </ext:form>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>


       <ext:Window ID="Window1" Title="弹出窗体" Popup="false" EnableIFrame="true" IFrameUrl="about:blank"
        Target="Parent" runat="server"   CloseAction="HidePostBack" IsModal="true" Width="750px"
        EnableConfirmOnClose="true"  OnClose="Window1_Close" Height="300px">
    </ext:Window>




    </form>
</body>
</html>
